﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;

namespace BUS
{
    public class LoaiBoKichDienBUS
    {
        public DataTable LoadLoaiBoKD()
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            return loaiKD_DAO.LoadLoaiKD();
        }

        public void ThemLoaiKD(LoaiBoKichDienDTO lkdDTO)
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            loaiKD_DAO.ThemLoaiKD(lkdDTO);
        }

        public int SuaLoaiKD(LoaiBoKichDienDTO lkdDTO)
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            return loaiKD_DAO.SuaLoaiKD(lkdDTO);
        }

        public int XoaLoaiKD(LoaiBoKichDienDTO lkdDTO)
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            return loaiKD_DAO.XoaLoaiKD(lkdDTO);
        }

        public int KTLoaiKD(LoaiBoKichDienDTO lkdDTO)
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            return loaiKD_DAO.KTLoaiKD(lkdDTO);
        }

        public int KTMaLoaiKD(LoaiBoKichDienDTO lkdDTO)
        {
            LoaiBoKichDienDAO loaiKD_DAO = new LoaiBoKichDienDAO();
            return loaiKD_DAO.KTMaLoaiKD(lkdDTO);
        }
    }
}
